import request from '../utils/request'

// 登录API
export function loginApi(data) {
  return request({
    url: '/api/user/login',
    method: 'post',
    data
  })
}

// 获取用户信息API
export function getUserInfoApi() {
  return request({
    url: '/api/user/info',
    method: 'get'
  })
}